package org.springsocial.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springsocial.dao.CountryDao;
import org.springsocial.domain.Country;

@Repository
public class CountryDaoImpl  extends AbstractJpaDao<Country> implements CountryDao {

	public CountryDaoImpl(){
	      setClazz(Country.class );
	}
	@Override
	public Country getCountry(String code) {
		return findOne(code);
	}

	@Override
	public List<Country> getAll() {
		return findAll();
	}

}
